﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Wx.MiniProgram
{
    /// <summary>
    /// 发送信息给会员
    /// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.send.html
    /// </summary>
    public class SendMsgToMemberDto
    {
        /// <summary>
        /// 
        /// </summary>
        public string AccessToken { get; set; } = string.Empty;

        /// <summary>
        /// 会员的openid
        /// </summary>
        public string ToUser { get; set; } = string.Empty;

        /// <summary>
        /// 消息类型  text,image,link,miniprogrampage(小程序卡片)
        /// </summary>
        public string MsgType { get; set; } = string.Empty;

        /// <summary>
        /// text内容
        /// </summary>
        public JObject? Text { get; set; } = null;

        /// <summary>
        /// image内容
        /// </summary>
        public JObject? Image { get; set; } = null;

        /// <summary>
        /// link内容
        /// </summary>
        public JObject? Link { get; set; } = null;

        /// <summary>
        /// 小程序卡片内容
        /// </summary>
        public JObject? MiniProgramPage { get; set; } = null;
    }
}
